//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_getwparray3.sqf"
#include "x_setup.sqf"

private ["_pos","_a","_b","_angle","_wp_a","_point"];
PARAMS_4(_pos,_a,_b,_angle);
_wp_a = [];_wp_a resize 100;
for "_i" from 0 to 99 do {
	_point = [_pos, _a, _b, _angle] call FUNC(GetRanPointSquare);
	if (count _point == 0) then {
		for "_e" from 0 to 150 do {_point = [_pos, _a, _b, _angle] call FUNC(GetRanPointSquare);if (count _point > 0) exitWith {}};
	};
	if (count _point > 0) then {_wp_a set [_i, _point]};
};
_wp_a